package com.atguigu.userprofile.dao

import com.atguigu.userprofile.bean.{TaskInfo, TaskTagRule}
import com.atguigu.userprofile.util.MySqlUtil

object TaskTagRuleDAO {


  def getTaskTagRuleList(taskId:String): List[TaskTagRule] ={

      val sql = s"select  tr.*,ti.tag_name as sub_tag_value from  task_tag_rule tr ,tag_info ti  where  tr.sub_tag_id=ti.id and    tr.task_id=$taskId"
      val ruleList: List[TaskTagRule] = MySqlUtil.queryList(sql,classOf[TaskTagRule],true)

      ruleList


  }
}
